<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="Generator" content="ALORK 20150428.01" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="<?php echo $this->_var['keywords']; ?>" />
<meta name="Description" content="<?php echo $this->_var['description']; ?>" />
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0"/>

<title><?php echo $this->_var['page_title']; ?></title>



<link rel="shortcut icon" href="favicon.ico" />
<link rel="icon" href="animated_favicon.gif" type="image/gif" />
<link rel="stylesheet" href="./public/my_style.css" />
<link rel="stylesheet" href="./public/style.css" />
<?php echo $this->smarty_insert_scripts(array('files'=>'./../js/region.js,./../js/user.js,./../js/common.js,./../js/jquery.js,./../js/jquery.json-1.3.js,./../js/transport.js')); ?>

<style type="text/css" media="screen">
</style>
</head>
<body >
<?php echo $this->fetch('library/user_head.lbi'); ?>
  <div id="body" style="width:100%" class="adapt">
  
   <?php if ($this->_var['action'] == 'default'): ?>
      <div id="user_index">
          <div class="head_img">
          <?php if ($this->_var['info']['head']): ?>
          <img src="../<?php echo $this->_var['info']['head']; ?>" alt="" width="120px;" height="120px;">
          <?php else: ?>
          <img src="../<?php if ($this->_var['info']['sex'] == 1): ?>img/sex0.jpg<?php else: ?>img/sex1.jpg<?php endif; ?>" alt="" width="120px;" height="120px;">
          <?php endif; ?>
          </div>
          <div class="name"><?php echo $this->_var['info']['username']; ?></div>
          <div class="Signature"><?php echo $this->_var['info']['signature']; ?></div>
          <div class="menu">
               <?php if ($this->_var['info']['freeplan_info']): ?>
               <a href="user.php?act=freeplan"><span class="span1">我的圆梦美院计划</span></a>
               <?php else: ?>
               <a href="freeplan.php"><span class="span1">我的圆梦美院计划</span></a>
               <?php endif; ?>
               <a href="user.php?act=order_list">我的订单</a>
               <a href="user.php?act=track_packages">快递查询</a>
               <a href="user.php?act=collection_list">商品收藏</a>
               <a href="user.php?act=address_list">收货地址</a>
               <a href="user.php?act=sale_list">售后订单</a>
               <a href="user.php?act=coupon" title="我的优惠券">我的优惠券</a>
               <a href="user.php?act=my_recommend" title="我的推荐人">我的推荐人</a>
               <?php if ($this->_var['agent_rank'] == 1): ?>
               <a href="user.php?act=my_distributor" title="我的分销商">我的分销商</a>
               <a href="user.php?act=distributor_detailed" title="分销明细">分销明细</a>
               <?php endif; ?>
               <a href="http://wpa.b.qq.com/cgi/wpa.php?ln=2&uin=800099584" title="联系客服">联系客服</a>
               <a href="user.php?act=logout" title="退出登录" style="margin-bottom:100px;">退出登录</a>
          </div>
      </div>
      
      
<?php else: ?>

<?php endif; ?>


<?php if ($this->_var['action'] == 'freeplan'): ?>
<div id="freeplan">
  <div class="free_head">
    <img src="../mobile/images/freeplan_info_head.jpg">
    <span class="head_span1">您的奖金：</span>
    <span class="head_span2"><?php echo $this->_var['freeplan_info']['money']; ?>元</span>
  </div>
  <div class="free_head2">
    <span>您&nbsp;<span style="font-size: 1em; color:black;"><?php echo $this->_var['freeplan_info']['exam_year']; ?></span>&nbsp;年参加高考&nbsp;&nbsp;&nbsp;&nbsp;祝您成功！</span>
    <a href="user.php?act=freeplan_info"><img src="../mobile/images/freeplan_info_jump.jpg"></a>
  </div>
  <div class="free_msg">
    <img src="../mobile/images/freeplan_info_msg.png">
  </div>
  <div class="percentage">
    <img src="../mobile/images/freeplan_info_percentage.png">
    <span class="precen_bar" style="background-size: <?php echo $this->_var['percentage']; ?>%;"></span>
    <span class="percen_num"><?php echo $this->_var['percentage']; ?>%</span>
  </div>
  
  <div class="cost_title">
    <span>本月消费记录</span>
    <img class="cost_show" src="../mobile/images/cost_show.png">
    <img class="cost_hide" src="../mobile/images/cost_hide.png">
  </div>
  <?php if (cost): ?>
  <div class="cost_list">
  <?php $_from = $this->_var['cost']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['item']):
?>
    <div class="cost_row">
      <img src="../mobile/images/cost_num.png">
      <a href="<?php echo $this->_var['item']['url']; ?>"><span class="cost_span1"><?php echo $this->_var['item']['goods_name']; ?></span></a>
      <span class="cost_span2"><?php echo $this->_var['item']['goods_number']; ?></span>
    </div>
  <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  </div>
  <?php endif; ?>
  <div class="pick_code">
      <a href="http://pan.baidu.com/share/init?shareid=1898491918&uk=89062392"><span class="code1">名家高清画作领取</span></a><span>&nbs    p;&nbsp;提取码：2w46</span>
  </div>
  
  <div class="recommend_head">
    <span>为您推荐</span>
  </div>
  <div class="recommend_list">
  <?php $_from = $this->_var['recommend']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['item']):
?>
    <div class="recommend_block">
      <a href="<?php echo $this->_var['item']['url']; ?>">
        <img src="../<?php echo $this->_var['item']['goods_thumb']; ?>">
        <span class="reco_span1"><?php echo $this->_var['item']['goods_name']; ?></span><span class="reco_span2">￥<?php echo $this->_var['item']['shop_price']; ?></span>
      </a>
    </div>
  <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  </div>
</div>
<?php endif; ?>

<?php if ($this->_var['action'] == 'freeplan_info'): ?>
<div id="freeplan_info">
  <div class="info_list">
    <div class="info_row">
      <span class="info_span1">参加高考年份：</span><span class="info_span2"><?php echo $this->_var['freeplan_info']['exam_year']; ?></span>
    </div>
 <!--    <div class="info_row">
      <span class="info_span1">真实姓名：</span><span class="info_span2"><?php echo $this->_var['freeplan_info']['realname']; ?></span>
    </div>
    <div class="info_row">
      <span class="info_span1">身份证：</span><span class="info_span2"><?php echo $this->_var['freeplan_info']['idcardnumber']; ?></span>
    </div>
    <div class="info_row">
      <span class="info_span1">联系电话：</span><span class="info_span2"><?php echo $this->_var['freeplan_info']['mobile']; ?></span>
    </div>
    <div class="info_row">
      <span class="info_span1">常用邮箱：</span><span class="info_span2"><?php echo $this->_var['freeplan_info']['email']; ?></span>
    </div>
    <div class="info_row">
      <span class="info_span1">就读学校：</span><span class="info_span2">华南师范大学<span style="font-size: 0.8em;">(<?php echo $this->_var['addr']; ?>)</span></span>
    </div>
    <div class="info_row">
      <span class="info_span1">理想美院：</span><span class="info_span2"><?php echo $this->_var['freeplan_info']['academy']; ?></span>
      <img class="info_img" src="../img/logo/<?php echo $this->_var['lang'][$this->_var['freeplan_info']['academy']]; ?>.jpg" alt=""/>
    </div>
    <div class="info_row">
      <a href="http://pan.baidu.com/share/init?shareid=1898491918&uk=89062392"><span class="info_span1" style="text-decoration: underline;">名家高清画作领取</span></a><span class="info_span2">&nbsp;&nbsp;&nbsp;&nbsp;提取码：2w46</span>
    </div> -->
  </div>
</div>
<?php endif; ?>



<?php if ($this->_var['action'] == 'collection_list'): ?>
<div id="Collect">
  <div class="msg_box">
  <?php if ($this->_var['goods_list']): ?>
   <?php $_from = $this->_var['goods_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'goods');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['goods']):
?>
   <div class="msg_goods">
    <div class="lefts">
      <div class="img"><a href="<?php echo $this->_var['goods']['url']; ?>"><img src="./../<?php echo $this->_var['goods']['pic']; ?>" alt="" /></a></div>
    </div>
     <div class="rights">
      <div class="banner"><?php echo $this->_var['goods']['name']; ?></div>
      <div class="price"><?php if ($this->_var['goods']['promote_price']): ?> <?php echo $this->_var['goods']['promote_price']; ?>  <?php else: ?> <?php echo $this->_var['goods']['price']; ?> <?php endif; ?>
      </div> 
      <a href="javascript:location.href='user.php?act=delete_collection&collection_id=<?php echo $this->_var['goods']['id']; ?>'" class="delete">删除</a>
    <a href="<?php echo $this->_var['goods']['url']; ?>" class="cart">立即购买</a>
   
     </div>
   </div>
  <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  <?php else: ?>
  <div class="no_collection">
    <img src="./Icon/no_collection.jpg" alt="" />
    <a href="index.php" class="continue">继续逛</a>
  </div>
  
  <?php endif; ?>
</div>
</div>
<?php endif; ?>

<!-- <div id="footer"><?php echo $this->_var['footer']; ?></div> -->
<?php echo $this->fetch('library/footer.lbi'); ?>
<script type="text/javascript">

    /*字体大小 自适应 rem单位*/
    function auto(){
        var width = $('body').width();
        var font_size = 20*(width/320);
        var font_size2 = (width/320)*625+'%';
        $('body').css('font-size',font_size);
        $('html').css('font-size',font_size2);
    }
        auto();
    /*浏览器横屏坚屏改变时也运行函数*/
    window.onorientationchange = function() {
        auto();
    };
    /* 浏览器窗口发生改变也运行函数*/
    window.resize=function(){
        auto();
    };
</script>
</body>
<script type="text/javascript">
    /* 根据浏览器窗口大小改变我的全名计划的字体大小 */
    var max_width = 720;
    var font_size = $('#freeplan').width() * 100 / max_width;
    $('#freeplan').css('font-size', font_size + 'px');

    /* 根据浏览器窗口大小改变我的资料的字体大小 */
    var max_width = 720;
    var font_size = $('#freeplan_info').width() * 100 / max_width;
    $('#freeplan_info').css('font-size', font_size + 'px');

    $(function(){
        /* 点击显示隐藏当月消费 */
        $('.cost_show').click(function(){
          $('.cost_show').css('display', 'none');
          $('.cost_hide').css('display', 'block');
          $('.cost_list').css('display', 'block');
        });
        $('.cost_hide').click(function(){
          $('.cost_hide').css('display', 'none');
          $('.cost_show').css('display', 'block');
          $('.cost_list').css('display', 'none');
        });
    });
</script>
<script type="text/javascript">
<?php $_from = $this->_var['lang']['clips_js']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['item']):
?>
var <?php echo $this->_var['key']; ?> = "<?php echo $this->_var['item']; ?>";
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</script>
</html>
